import request from '@/utils/request'

export function getWebsite(data) {
  return request({
    url: '/website/',
    method: 'get',
    params:data
  })
}


export function updateWebsite(data) {
    return request({
      url: '/website/'+data.id+'/?partial=true',
      method: 'PATCH',
      data:data
    })
  }

  export function addWebsite(data) {
    return request({
      url: '/website/',
      method: 'POST',
      data:data
    })
  }

  export function delWebsite(id) {
    return request({
      url: '/website/'+id+'/',
      method: 'DELETE'
    })
  }